home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 July / 07_02.iso / software / mdmx / files / DreamweaverMXInstaller.exe / Disk1 / data1.cab / Configuration_En / Commands / Manage Extensions.js < prev    next >
Encoding:
JavaScript  |  2002-05-01  |  739 b   |  36 lines

  1. // Copyright 2002 Macromedia, Inc. All rights reserved.
  2. //
  3. // Command: Manage Exchange Packages
  4. //
  5. // **************** Commands API *****************
  6.     
  7. function canAcceptCommand()
  8. {
  9.     // First validate that DWEMLaunch.DLL has been loaded
  10.  
  11.     if ( typeof( DWEMLaunch ) == "undefined" )
  12.         return( false );
  13.  
  14.     return DWEMLaunch.mayLaunchExtensionManager();
  15. }
  16.  
  17. function manageExtensions()
  18. {
  19.     var product;
  20.     
  21.     product = dw.appName;
  22.     product += " ";
  23.  
  24.     var vers = dw.appVersion;
  25.  
  26.     // The appVersion has the form "versionNumber [languageCode] (platform)"
  27.     // For example: "3.0 [se] (Win32)"
  28.     // We only want the "3"
  29.  
  30.     product += vers[0];
  31.  
  32.     var rc = DWEMLaunch.launchExtensionManager(product);
  33.  
  34.     return;         
  35. }
  36.